import request from '@/utils/request';

export const getQiniuUploadToken = () => {
  return request({
    url: '/dev-api/api/myqiniu/getQiniuUploadToken',
    method: 'get',
  });
};
export const upImg = (data) => {
  return request({
    data: data,
    url: '/dev-api/api/index/imageUpload',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
};
export const upVideo = (data) => {
  return request({
    data,
    url: '/dev-api/api/ManagerClassroom/videoUpload',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
};
